﻿using System;

namespace AbstractInfo
{
    class Program
    {
        static void Main(string[] args)
        {
            Stock stock = new Stock();
            stock.SharesOwned = 100;
            stock.CurrentPrice = 1;

            Console.WriteLine(stock.NetValue);
            
        }
    }

    public abstract class Asset
    {
        public abstract decimal NetValue { get; }
    }

    public class Stock : Asset
    {
        public long SharesOwned;
        public decimal CurrentPrice;
        public override decimal NetValue => SharesOwned * CurrentPrice;
    }
}
